﻿#!/usr/bin/env bash

echo "MiniBlog项目编译打包"

echo "1.代码更新"
SRC_DIR=/home/lipeng/project/mini-blog/
TARGET_DIR=/www/wwwroot/blog/
cd $SRC_DIR
git pull
echo "1.代码更新成功"

echo "2.后端编译"
cd $SRC_DIR
mvn clean package
mv $SRC_DIR/target/MiniBlog.jar $TARGET_DIR/MiniBlog.jar
echo "2.后端编译成功"




